<!DOCTYPE html>
<html >
<head>

    <!--[if lt IE 9]>
        <style>body {display: none; background: none !important} </style>
        <meta http-equiv="Refresh" Content="0; url=//outdatedbrowser.com/" />
    <![endif]-->

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="format-detection" content="telephone=no" />
<meta name="author" content="潍夫子" />



<meta name="description" content="使用工具介绍Hexo是一个快速、简洁且高效的博客框架。Hexo使用 Markdown（或其他渲染引擎）解析文章，在几秒内，即可利用靓丽的主题生成静态网页。使用者只需要专注于写博客而不需要关注网站是如何生成的。而且还有丰富的博客主题可以选择！
osChina 码云Pages是一个免费的静态网页托管服务，您可以使用码云 Pages 托管博客、项目官网等静态网页。
搭建环境Node.js安装

首先访问">
<meta property="og:type" content="article">
<meta property="og:title" content="免费个人博客搭建（Hexo+osChina）">
<meta property="og:url" content="http://weifuzi.oschina.io/2017/02/05/creatMyBlog/index.html">
<meta property="og:site_name" content="潍夫子的个人博客">
<meta property="og:description" content="使用工具介绍Hexo是一个快速、简洁且高效的博客框架。Hexo使用 Markdown（或其他渲染引擎）解析文章，在几秒内，即可利用靓丽的主题生成静态网页。使用者只需要专注于写博客而不需要关注网站是如何生成的。而且还有丰富的博客主题可以选择！
osChina 码云Pages是一个免费的静态网页托管服务，您可以使用码云 Pages 托管博客、项目官网等静态网页。
搭建环境Node.js安装

首先访问">
<meta property="og:image" content="http://weifuzi.oschina.io/2017/02/05/creatMyBlog/1.png">
<meta property="og:image" content="http://weifuzi.oschina.io/2017/02/05/creatMyBlog/2.png">
<meta property="og:image" content="http://weifuzi.oschina.io/2017/02/05/creatMyBlog/3.png">
<meta property="og:updated_time" content="2017-02-08T13:37:11.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="免费个人博客搭建（Hexo+osChina）">
<meta name="twitter:description" content="使用工具介绍Hexo是一个快速、简洁且高效的博客框架。Hexo使用 Markdown（或其他渲染引擎）解析文章，在几秒内，即可利用靓丽的主题生成静态网页。使用者只需要专注于写博客而不需要关注网站是如何生成的。而且还有丰富的博客主题可以选择！
osChina 码云Pages是一个免费的静态网页托管服务，您可以使用码云 Pages 托管博客、项目官网等静态网页。
搭建环境Node.js安装

首先访问">
<meta name="twitter:image" content="http://weifuzi.oschina.io/2017/02/05/creatMyBlog/1.png">

<link rel="apple-touch-icon" href= "/apple-touch-icon.png">


    <link rel="alternate" href="/atom.xml" title="潍夫子的个人博客" type="application/atom+xml">



    <link rel="shortcut icon" href="/favicon.png">



    <link href="//cdn.bootcss.com/animate.css/3.5.1/animate.min.css" rel="stylesheet">



    <link href="//cdn.bootcss.com/fancybox/2.1.5/jquery.fancybox.min.css" rel="stylesheet">



    <script src="//cdn.bootcss.com/pace/1.0.2/pace.min.js"></script>
    <link href="//cdn.bootcss.com/pace/1.0.2/themes/blue/pace-theme-minimal.css" rel="stylesheet">


<link rel="stylesheet" href="/css/style.css">



<link href="//cdn.bootcss.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">


<title>免费个人博客搭建（Hexo+osChina） | 潍夫子的个人博客</title>

<script src="//cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
<script src="//cdn.bootcss.com/clipboard.js/1.5.10/clipboard.min.js"></script>

<script>
    var yiliaConfig = {
        fancybox: true,
        animate: true,
        isHome: false,
        isPost: true,
        isArchive: false,
        isTag: false,
        isCategory: false,
        fancybox_js: "//cdn.bootcss.com/fancybox/2.1.5/jquery.fancybox.min.js",
        scrollreveal: "//cdn.bootcss.com/scrollReveal.js/3.1.4/scrollreveal.min.js",
        search: true
    }
</script>


    <script> yiliaConfig.jquery_ui = [false]; </script>



    <script> yiliaConfig.rootUrl = "\/";</script>






</head>
<body>
  <div id="container">
    <div class="left-col">
    <div class="overlay"></div>
<div class="intrude-less">
    <header id="header" class="inner">
        <a href="/" class="profilepic">
            <img src="/img/avatar.png" class="animated zoomIn">
        </a>
        <hgroup>
          <h1 class="header-author"><a href="/">潍夫子</a></h1>
        </hgroup>

        

        
            <form id="search-form">
            <input type="text" id="local-search-input" name="q" placeholder="search..." class="search form-control" autocomplete="off" autocorrect="off" searchonload="false" />
            <i class="fa fa-times" onclick="resetSearch()"></i>
            </form>
            <div id="local-search-result"></div>
            <p class='no-result'>No results found <i class='fa fa-spinner fa-pulse'></i></p>
        


        

        <div id="switch-area" class="switch-area">
            <div class="switch-wrap">
                <section class="switch-part switch-part1">
                    <nav class="header-menu">
                        <ul>
                        
                            <li><a href="/">主页</a></li>
                        
                            <li><a href="/archives/">所有文章</a></li>
                        
                            <li><a href="/tags/">标签云</a></li>
                        
                        </ul>
                    </nav>
                    <nav class="header-nav">
                        <ul class="social">
                            
                                <a class="fa Email" href="mailto:yuyekuangmo@qq.com" title="Email"></a>
                            
                        </ul>
                    </nav>
                </section>
                
                
                
                

                
                
                <section class="switch-part switch-part3">
                
                    <div id="js-aboutme">没事打酱油</div>
                </section>
                
            </div>
        </div>
    </header>                
</div>
    </div>
    <div class="mid-col">
      <nav id="mobile-nav">
      <div class="overlay">
          <div class="slider-trigger"></div>
          <h1 class="header-author js-mobile-header hide"><a href="/" title="回到主页">潍夫子</a></h1>
      </div>
    <div class="intrude-less">
        <header id="header" class="inner">
            <a href="/" class="profilepic">
                <img src="/img/avatar.png" class="animated zoomIn">
            </a>
            <hgroup>
              <h1 class="header-author"><a href="/" title="回到主页">潍夫子</a></h1>
            </hgroup>
            
            <nav class="header-menu">
                <ul>
                
                    <li><a href="/">主页</a></li>
                
                    <li><a href="/archives/">所有文章</a></li>
                
                    <li><a href="/tags/">标签云</a></li>
                
                <div class="clearfix"></div>
                </ul>
            </nav>
            <nav class="header-nav">
                        <ul class="social">
                            
                                <a class="fa Email" target="_blank" href="mailto:yuyekuangmo@qq.com" title="Email"></a>
                            
                        </ul>
            </nav>
        </header>                
    </div>
    <link class="menu-list" tags="Tags" friends="Friends" about="About Me"/>
</nav>
      <div class="body-wrap"><article id="post-creatMyBlog" class="article article-type-post" itemscope itemprop="blogPost">
  
    <div class="article-meta">
      <a href="/2017/02/05/creatMyBlog/" class="article-date">
      <time datetime="2017-02-05T04:46:11.000Z" itemprop="datePublished">2017-02-05</time>
</a>


    </div>
  
  <div class="article-inner">
    
      <input type="hidden" class="isFancy" />
    
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      免费个人博客搭建（Hexo+osChina）
    </h1>
  

      </header>
      
      <div class="article-info article-info-post">
        
    <div class="article-category tagcloud">
    <a class="article-category-link" href="/categories/开疆拓土/">开疆拓土</a>
    </div>


        
    <div class="article-tag tagcloud">
        <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/其它/">其它</a></li></ul>
    </div>

        <div class="clearfix"></div>
      </div>
      
    
    <div class="article-entry" itemprop="articleBody">
      
          
        <h2 id="使用工具介绍"><a href="#使用工具介绍" class="headerlink" title="使用工具介绍"></a>使用工具介绍</h2><p><strong>Hexo</strong>是一个快速、简洁且高效的博客框架。Hexo使用 Markdown（或其他渲染引擎）解析文章，在几秒内，即可利用靓丽的主题生成静态网页。使用者只需要专注于写博客而不需要关注网站是如何生成的。而且还有丰富的博客主题可以选择！</p>
<p><strong>osChina</strong> 码云Pages是一个免费的静态网页托管服务，您可以使用码云 Pages 托管博客、项目官网等静态网页。</p>
<h2 id="搭建环境"><a href="#搭建环境" class="headerlink" title="搭建环境"></a>搭建环境</h2><h3 id="Node-js安装"><a href="#Node-js安装" class="headerlink" title="Node.js安装"></a>Node.js安装</h3><blockquote>
<ol>
<li>首先访问<a href="https://nodejs.org/en/download/" target="_blank" rel="external">Node.js官网</a>,选择对应系统的安装包下载一路安装即可。</li>
<li>安装完成后，可以打开终端输入<code>node -v</code>和<code>npm -v</code>分别查看版本</li>
</ol>
</blockquote>
<h3 id="Git安装"><a href="#Git安装" class="headerlink" title="Git安装"></a>Git安装</h3><blockquote>
<p>此处不做说明，另行查找方法</p>
</blockquote>
<h3 id="Hexo安装"><a href="#Hexo安装" class="headerlink" title="Hexo安装"></a>Hexo安装</h3><blockquote>
<ol>
<li>Node.js和Git都安装好后,首先创建一个文件夹用来存放Hexo的配置文件,如Blog,然后进入Blog里安装Hexo。</li>
<li>在终端执行<code>sudo npm install -g hexo</code>，完成Hexo安装</li>
<li>安装完成该后执行<code>hexo init</code>，完成初始化</li>
<li>执行<code>npm install</code></li>
<li>执行<code>hexo server</code>，运行本地服务</li>
<li>浏览器输入<a href="http://localhost:4000" target="_blank" rel="external">http://localhost:4000</a>，查看默认效果</li>
</ol>
</blockquote>
<h2 id="实际操作"><a href="#实际操作" class="headerlink" title="实际操作"></a>实际操作</h2><h3 id="修改博客主题"><a href="#修改博客主题" class="headerlink" title="修改博客主题"></a>修改博客主题</h3><p>Hexo的主题都是一些前端民间高手写的模版，可以在官方收录的主题中去<a href="https://hexo.io/themes/" target="_blank" rel="external">这里</a>挑选，我用的是<a href="https://github.com/MOxFIVE/hexo-theme-yelee" target="_blank" rel="external">这个</a></p>
<blockquote>
<ol>
<li>看上喜欢的主题点击主题名字可以跳转到资源位置，下载资源包即可</li>
<li>将下载的资源包解压，然后整个文件夹放入<code>Blog/themes</code>文件夹中（该文件夹有一个当前的默认主题文件<code>landscape</code>）</li>
<li>打开终端进入到项目目录即<code>cd desktop/Blog</code>，然后<code>vim _config.yml</code>(<strong>注意：</strong>此处是项目中的_config.yml文件而不是thems里面主题包的_config.yml)</li>
</ol>
<p><img src="/2017/02/05/creatMyBlog/1.png" alt="修改_config.yml文件"><br>将红框中的<code>landscape</code>替换为你下载的资源包文件名(此处为<code>hexo-theme-yelee-master</code>)<br><em>注意：这里“：”后面必须要有一个空格，而且这个空格要在英文输入法下，不然会报一些稀奇古怪的错。</em></p>
<ol>
<li>执行<code>hexo server</code>，运行本地服务</li>
<li>浏览器输入<a href="http://localhost:4000" target="_blank" rel="external">http://localhost:4000</a>，查看效果</li>
</ol>
</blockquote>
<h3 id="配置可以添加本地图片（可选）"><a href="#配置可以添加本地图片（可选）" class="headerlink" title="配置可以添加本地图片（可选）"></a>配置可以添加本地图片（可选）</h3><blockquote>
<ol>
<li>首先确认项目中<code>_config.yml</code>(此处项目为Blog)中有<code>post_asset_folder:true</code>。<br>Hexo 提供了一种更方便管理 Asset 的设定<code>post_asset_folder</code>当您设置<code>post_asset_folder</code>为<code>true</code>参数后，在建立文件时，Hexo会自动建立一个与文章同名的文件夹，您可以把与该文章相关的所有资源都放到那个文件夹，如此一来，您便可以更方便的使用资源。</li>
<li>在Hexo的目录下执行<code>npm install https://github.com/CodeFalling/hexo-asset-image --save</code>（需要等待一段时间）。</li>
<li>完成安装后用<code>hexo new &quot;文章名&quot;</code>新建文章的时候会发现<code>source/_posts</code>目录下面会多出一个和文章名字一样的文件夹。图片就可以放在文件夹下面。</li>
<li>只要使用 <code>![图片标题](新建文章的文件名/test.jpg)</code> 就可以插入图片，其中[]里面不写文字则没有图片标题。</li>
</ol>
</blockquote>
<h3 id="写文章"><a href="#写文章" class="headerlink" title="写文章"></a>写文章</h3><p>墙裂建议在项目中使用<code>hexo new &quot;文章名&quot;</code>，然后到<code>source/_posts</code>目录下使用喜欢的编辑器进行文章编辑(我用的MacDown)</p>
<blockquote>
<p>执行<code>hexo server</code>，运行本地服务就可以查看效果</p>
</blockquote>
<h3 id="发布静态html到码云Pages上"><a href="#发布静态html到码云Pages上" class="headerlink" title="发布静态html到码云Pages上"></a>发布静态html到码云Pages上</h3><blockquote>
<ol>
<li>注册码云账号，并创建项目。 <strong>注意：需要建立一个与自己个性地址同名的项目，如 <a href="http://git.oschina.net/ipvb" target="_blank" rel="external">http://git.oschina.net/ipvb</a> 这个用户就要创建项目名为ipvb(不这样的话为有一些麻烦事)</strong></li>
<li>创建好项目后复制项目的Https的地址</li>
<li>在项目目录下，终端执行<code>hexo generate</code>，生成静态文件到项目根目录的public文件夹中(此时你会发现根目录多了个public文件夹)</li>
<li>配置项目根目录<code>_config.yml</code>文件，修改<code>deploy</code>的值</li>
</ol>
<p><img src="/2017/02/05/creatMyBlog/2.png" alt="修改deploy的值"></p>
<ol>
<li>安装部署插件，执行<code>npm install hexo-deployer-git --save</code></li>
<li>在项目根目录执行<code>hexo deploy</code>(一键部署功能，实际上是将项目中public的文件通过git上传到码云对应的那个项目中，第一次部署会要求输入码云的账号及密码)</li>
<li>部署成功之后，登录码云，查看之前创建的项目中出现了public 文件夹中的文件，这时候代表之前的部署是成功的。然后如下图，启动码云的pages功能：</li>
</ol>
<p><img src="/2017/02/05/creatMyBlog/3.png" alt="启动pages服务"></p>
<ol>
<li>之后每次需要部署就先执行<code>hexo generate</code>,再执行<code>hexo deploy</code>。或者直接执行组合命令<code>hexo g -d</code></li>
</ol>
</blockquote>
<h3 id="装饰博客"><a href="#装饰博客" class="headerlink" title="装饰博客"></a>装饰博客</h3><p>此处贴出本博客使用的主题的配置文档<a href="http://moxfive.coding.me/yelee/" target="_blank" rel="external">地址</a></p>

      
    </div>
    
  </div>
  
    
    <div class="copyright">
        <p><span>Title:</span><a href="/2017/02/05/creatMyBlog/">免费个人博客搭建（Hexo+osChina）</a></p>
        <p><span>Author:</span><a href="/" title="Back to Homepage">潍夫子</a></p>
        <p><span>Created:</span>2017-02-05, 12:46:11</p>
        <p><span>Updated:</span>2017-02-08, 21:37:11</p>
        <p>
            <span>Full URL:</span><a class="post-url" href="/2017/02/05/creatMyBlog/" title="免费个人博客搭建（Hexo+osChina）">http://weifuzi.oschina.io/2017/02/05/creatMyBlog/</a>
            <span class="copy-path" data-clipboard-text="From http://weifuzi.oschina.io/2017/02/05/creatMyBlog/　　By 潍夫子" title="Copy Article&#39;s Link &amp; Author"><i class="fa fa-clipboard"></i></span>
            <script> var clipboard = new Clipboard('.copy-path'); </script>
        </p>
        <p>
            <span>License:</span><i class="fa fa-creative-commons"></i> <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/" title="CC BY-NC-SA 4.0 International" target = "_blank">"CC BY-NC-SA 4.0"</a> Keep Link &amp; Author if Distribute.
        </p>
    </div>



    <nav id="article-nav">
        
            <div id="article-nav-newer" class="article-nav-title">
                <a href="/2017/02/06/interview/">
                    iOS问题总结&lt;二&gt;
                </a>
            </div>
        
        
    </nav>

  
</article>

    <div id="toc" class="toc-article">
        <strong class="toc-title">Contents</strong>
        
            <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#使用工具介绍"><span class="toc-number">1.</span> <span class="toc-text">使用工具介绍</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#搭建环境"><span class="toc-number">2.</span> <span class="toc-text">搭建环境</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#Node-js安装"><span class="toc-number">2.1.</span> <span class="toc-text">Node.js安装</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Git安装"><span class="toc-number">2.2.</span> <span class="toc-text">Git安装</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Hexo安装"><span class="toc-number">2.3.</span> <span class="toc-text">Hexo安装</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#实际操作"><span class="toc-number">3.</span> <span class="toc-text">实际操作</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#修改博客主题"><span class="toc-number">3.1.</span> <span class="toc-text">修改博客主题</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#配置可以添加本地图片（可选）"><span class="toc-number">3.2.</span> <span class="toc-text">配置可以添加本地图片（可选）</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#写文章"><span class="toc-number">3.3.</span> <span class="toc-text">写文章</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#发布静态html到码云Pages上"><span class="toc-number">3.4.</span> <span class="toc-text">发布静态html到码云Pages上</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#装饰博客"><span class="toc-number">3.5.</span> <span class="toc-text">装饰博客</span></a></li></ol></li></ol>
        
    </div>
    <style>
        .left-col .switch-btn,
        .left-col .switch-area {
            display: none;
        }
        .toc-level-3 i,
        .toc-level-3 ol {
            display: none !important;
        }
    </style>

    <input type="button" id="tocButton" value="Hide"  title="Show or Hide Table of Contents">

    <script>
        yiliaConfig.toc = ["Hide", "Show", !!"false"];
    </script>



    
<div class="share">
    
        <div class="bdsharebuttonbox">
            <a href="#" class="fa fa-twitter bds_twi" data-cmd="twi" title="分享到推特"></a>
            <a href="#" class="fa fa-weibo bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
            <a href="#" class="fa fa-qq bds_sqq" data-cmd="sqq" title="分享给 QQ 好友"></a>
            <a href="#" class="fa fa-files-o bds_copy" data-cmd="copy" title="复制网址"></a>
            <a href="#" class="fa fa fa-envelope-o bds_mail" data-cmd="mail" title="通过邮件分享"></a>
            <a href="#" class="fa fa-weixin bds_weixin" data-cmd="weixin" title="生成文章二维码"></a>
            <a href="#" class="fa fa-share-alt bds_more" data-cmd="more"></i></a>
        </div>
        <script>
            window._bd_share_config={
                "common":{"bdSnsKey":{},"bdText":"免费个人博客搭建（Hexo+osChina）　| 潍夫子的个人博客　","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"24"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];
        </script>
    

    
</div>







    




    <div class="scroll" id="post-nav-button">
        
            <a href="/2017/02/06/interview/" title="Pre: iOS问题总结&lt;二&gt;">
                <i class="fa fa-angle-left"></i>
            </a>
        

        <a title="Mini Archives"><i class="fa fa-bars"></i><i class="fa fa-times"></i></a>

        
            <a href="/" title="Back to Homepage"><i class="fa fa-home"></i></a>
        
    </div>

    <ul class="post-list"><li class="post-list-item"><a class="post-list-link" href="/2019/04/02/buyHouse/">置业储备</a></li><li class="post-list-item"><a class="post-list-link" href="/2019/03/28/CSS初探/">CSS初探</a></li><li class="post-list-item"><a class="post-list-link" href="/2019/03/28/html标签初探/">html标签初探</a></li><li class="post-list-item"><a class="post-list-link" href="/2018/05/30/iOS11Safearea/">iOS11 SafeArea适配相关</a></li><li class="post-list-item"><a class="post-list-link" href="/2017/03/28/Efficiency-XcodeTemplate/">高效工作--自定义Xcode类模板</a></li><li class="post-list-item"><a class="post-list-link" href="/2017/02/08/iOS-summary/">iOS知识总结<一></a></li><li class="post-list-item"><a class="post-list-link" href="/2017/02/06/interview/">iOS问题总结<二></a></li><li class="post-list-item"><a class="post-list-link" href="/2017/02/05/creatMyBlog/">免费个人博客搭建（Hexo+osChina）</a></li></ul>




    <script>
        
    </script>
</div>
      <footer id="footer">
    <div class="outer">
        <div id="footer-info">
            <div class="footer-left">
                <i class="fa fa-copyright"></i> 
                2017-2019 潍夫子
            </div>
            <div class="footer-right">
                <a href="http://hexo.io/" target="_blank" title="A fast, simple &amp; powerful blog framework">Hexo</a>  Theme <a href="https://github.com/MOxFIVE/hexo-theme-yelee" target="_blank" title="Another simple and elegant theme for Hexo  v3.5">Yelee</a> by MOxFIVE <i class="fa fa-heart animated infinite pulse"></i>
            </div>
        </div>
        
            <div class="visit">
                
                    <span id="busuanzi_container_site_pv" style='display:none'>
                        <span id="site-visit" title="Site Visitors"><i class="fa fa-user" aria-hidden="true"></i><span id="busuanzi_value_site_uv"></span>
                        </span>
                    </span>
                
                
                    <span>| </span>
                
                
                    <span id="busuanzi_container_page_pv" style='display:none'>
                        <span id="page-visit"  title="Page Hits"><i class="fa fa-eye animated infinite pulse" aria-hidden="true"></i><span id="busuanzi_value_page_pv"></span>
                        </span>
                    </span>
                
            </div>
        
    </div>
</footer>
    </div>
    
<script data-main="/js/main.js" src="//cdn.bootcss.com/require.js/2.2.0/require.min.js"></script>

    <script>
        $(document).ready(function() {
            var iPad = window.navigator.userAgent.indexOf('iPad');
            if (iPad > -1 || $(".left-col").css("display") === "none") {
                var bgColorList = ["#9db3f4", "#414141", "#e5a859", "#f5dfc6", "#c084a0", "#847e72", "#cd8390", "#996731"];
                var bgColor = Math.ceil(Math.random() * (bgColorList.length - 1));
                $("body").css({"background-color": bgColorList[bgColor], "background-size": "cover"});
            }
            else {
                var backgroundnum = 5;
                var backgroundimg = "url(/background/bg-x.jpg)".replace(/x/gi, Math.ceil(Math.random() * backgroundnum));
                $("body").css({"background": backgroundimg, "background-attachment": "fixed", "background-size": "cover"});
            }
        })
    </script>





<div class="scroll" id="scroll">
    <a href="#" title="Back to Top"><i class="fa fa-arrow-up"></i></a>
    <a href="#comments" onclick="load$hide();" title="Comments"><i class="fa fa-comments-o"></i></a>
    <a href="#footer" title="Go to Bottom"><i class="fa fa-arrow-down"></i></a>
</div>
<script>
    // Open in New Window
    
        var oOpenInNew = {
            
            
            
            
            
            
             archives: ".archive-article-title", 
             miniArchives: "a.post-list-link", 
            
             friends: "#js-friends a", 
             socail: ".social a" 
        }
        for (var x in oOpenInNew) {
            $(oOpenInNew[x]).attr("target", "_blank");
        }
    
</script>

<script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js">
</script>
  </div>
</body>
</html>